using System;
using System.IO;
using System.Collections.Generic;
using System.Text;

namespace System.IPod
{
	public class DataSet : Node
	{
		Mhsd m_mhsd;
		int m_type;

		public int Type
		{
			get { return m_type; }
		}

		protected override int Size
		{
			get { return m_mhsd.HeaderLength; }
		}

		protected override void ReadImpl(BinaryReader reader)
		{
			m_mhsd = new Mhsd();
			m_mhsd.Read(reader);
			m_type = m_mhsd.Type;
		}

		protected override void WriteImpl(BinaryWriter writer)
		{
			m_mhsd.Write(writer);
		}

		protected override void SetSize(int size)
		{
			m_mhsd.TotalLength = size;
		}
	}
}
